<div class="popbox-body">
	<form name="form" novalidate="novalidate" ng-submit="submit(form.$valid);">
		<div class="data-panel-body">
			<div class="data-form">
				<table cellspacing="0" cellpadding="0">
					<colgroup>
						<col width="80" />
					</colgroup>
					<tbody>
						<tr>
							<td class="x-control"><span class="x-star">*</span>选项名：</td>
							<td>
								<input type="text" name="name" ng-model="data.name" class="x-ipt" required placeholder="请输入选项名" />
								<div class="x-error" ng-if="interacted(form.name)" ng-messages="form.name.$error">
	                                <span ng-message="required">选项名不能为空</span>
	                            </div>
							</td>
						</tr>
						<tr>
							<td class="x-control"><span class="x-star">*</span>选项值：</td>
							<td>
								<input type="text" name="value" ng-model="data.value" class="x-ipt" required placeholder="请输入选项值" />
								<div class="x-error" ng-if="interacted(form.value)" ng-messages="form.value.$error">
	                                <span ng-message="required">选项值不能为空</span>
	                            </div>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		<div class="data-panel-footer">
			<div class="data-tools">
				<button class="dialog-button cancel-button" type="button" ng-click="close()">取消</button><button class="dialog-button" type="submit">添加</button>
			</div>
		</div>
	</form>
</div>